<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php echo $this->breadCrumbs(); ?>
  </div>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/report.png" alt="" /> <?php echo $_['heading_title']; ?></h1>
      <div class="buttons">
      <a onclick="$('#form').submit();" class="button"><span><?php echo $_['button_delete']; ?></span></a>
      </div>
    </div>
    <div class="content">
    <form action="<?php echo UA('report/search_keyword/delete'); ?>" method="post" enctype="multipart/form-data" id="form">
      <table class="list">
        <thead>
          <tr>
            <td width="1" style="text-align: center;"><input type="checkbox" onclick="$('input[name*=\'selected\']').attr('checked', this.checked);" /></td>
            <td class="left"><a <?php echo sort_url('keyword')?>><?php echo $_['text_keyword']; ?></a></td>
            <td class="left"><a <?php echo sort_url('items')?>><?php echo $_['text_items']; ?></a></td>
            <td class="right"><a <?php echo sort_url('total_search')?>><?php echo $_['text_total_search']; ?></a></td>
            <td class="right"><a <?php echo sort_url('month_search')?>><?php echo $_['text_month_search']; ?></a></td>
            <td class="right"><a <?php echo sort_url('week_search')?>><?php echo $_['text_week_search']; ?></a></td>
            <td class="right"><a <?php echo sort_url('today_search')?>><?php echo $_['text_today_search']; ?></a></td>
          </tr>
        </thead>
        <tbody>
          <?php if ($keywords) { ?>
          <?php foreach ($keywords as $keyword) { ?>
          <tr onmouseover="this.className='on';" onmouseout="this.className='';">
          	<td style="text-align: center;">
              <input type="checkbox" name="selected[]" value="<?php echo $keyword['keyword_id']; ?>" /></td>
            <td class="left"><?php echo $keyword['keyword']; ?></td>
            <td class="left"><?php echo $keyword['items']; ?></td>
            <td class="right"><?php echo $keyword['total_search']; ?></td>
            <td class="right"><?php echo $keyword['month_search']; ?></td>
            <td class="right"><?php echo $keyword['week_search']; ?></td>
            <td class="right"><?php echo $keyword['today_search']; ?></td>
          </tr>
          <?php } ?>
          <?php } else { ?>
          <tr>
            <td class="center" colspan="7"><?php echo $_['text_no_results']; ?></td>
          </tr>
          <?php } ?>
        </tbody>
      </table>
      </form>
      <div class="pagination"><?php echo $pagination; ?></div>
    </div>
  </div>
</div>
<?php echo $footer; ?>